package com.xiaoc.bulldozer.common.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xiaoc.bulldozer.common.dao.StatisticTalentMapper;
import com.xiaoc.bulldozer.common.dto.StatisticTalentDto;
import com.xiaoc.bulldozer.common.dto.StatisticTalentQueryDto;
import com.xiaoc.bulldozer.common.model.StatisticTalent;
import com.xiaoc.bulldozer.common.service.StatisticTalentService;

/**
 * StatisticTalent Service 实现类
 * 
 * @author Danfo Yam
 * 
 * @date 2018-09-14 16:20:57
 */
@Service("statisticTalentService")
public class StatisticTalentServiceImpl implements StatisticTalentService {

    @Resource
    private StatisticTalentMapper statisticTalentMapper;

    @Override
    public Integer getStatisticTalentCountByCondition(StatisticTalentQueryDto statisticTalentQueryDto) {
        return statisticTalentMapper.getStatisticTalentCountByCondition(statisticTalentQueryDto);
    }

    @Override
    public List<StatisticTalent> getStatisticTalentListByCondition(StatisticTalentQueryDto statisticTalentQueryDto) {
        return statisticTalentMapper.getStatisticTalentListByCondition(statisticTalentQueryDto);
    }

    @Override
    public StatisticTalent getStatisticTalentById(Integer id) {
        return statisticTalentMapper.getStatisticTalentById(id);
    }

    @Override
    public List<StatisticTalent> getAllStatisticTalentList() {
        return statisticTalentMapper.getAllStatisticTalentList();
    }
    
    @Override
    public void save(StatisticTalent statisticTalent) {
        statisticTalentMapper.save(statisticTalent);
    }

    @Override
    public void update(StatisticTalent statisticTalent) {
        statisticTalentMapper.update(statisticTalent);
    }

    @Override
    public void deleteById(Integer id) {
        statisticTalentMapper.deleteById(id);
    }

    @Override
    public List<StatisticTalent> countPartner(StatisticTalentQueryDto statisticTalentQueryDto) {
        return statisticTalentMapper.countPartner(statisticTalentQueryDto);
    }

    @Override
    public List<StatisticTalent> countAccount(StatisticTalentQueryDto statisticTalentQueryDto) {
        return statisticTalentMapper.countAccount(statisticTalentQueryDto);
    }

    @Override
    public List<StatisticTalent> countLoan(StatisticTalentQueryDto statisticTalentQueryDto) {
        return statisticTalentMapper.countLoan(statisticTalentQueryDto);
    }

    @Override
    public List<StatisticTalentDto> getStatisticTalentDtoListByCondition(
            StatisticTalentQueryDto statisticTalentQueryDto) {
        return statisticTalentMapper.getStatisticTalentDtoListByCondition(statisticTalentQueryDto);
    }

    @Override
    public List<StatisticTalentDto> groupStatisticTalentDtoListByCondition(
            StatisticTalentQueryDto statisticTalentQueryDto) {
        return statisticTalentMapper.groupStatisticTalentDtoListByCondition(statisticTalentQueryDto);
    }

    @Override
    public Integer groupStatisticTalentCountByCondition(StatisticTalentQueryDto statisticTalentQueryDto) {
        return statisticTalentMapper.groupStatisticTalentCountByCondition(statisticTalentQueryDto);
    }

    @Override
    public void deleteByYearMonth(StatisticTalentQueryDto statisticTalentQueryDto) {
        // TODO Auto-generated method stub
        statisticTalentMapper.deleteByYearMonth(statisticTalentQueryDto);
    }

}
